package com.ziyun.pop.modules.goods.dao;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ziyun.pop.modules.goods.TwbVo.TwbGoodsListVo;
import com.ziyun.pop.modules.goods.TwbVo.TwbStateCollectVo;
import com.ziyun.pop.modules.goods.entity.GoodsEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ziyun.pop.modules.goods.entity.GoodsImageEntity;
import com.ziyun.pop.modules.goods.vo.GoodsInfoVo;
import com.ziyun.pop.modules.goods.vo.GoodsSalesVo;
import javafx.scene.control.Pagination;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 商品表
 * 
 * @author llc
 * @email 787254039@qq.com
 * @date 2018-10-17 13:44:12
 */
public interface ErpGoodsDao extends BaseMapper<GoodsEntity> {

    List<GoodsEntity> queryCopyGoodsList(Map<String, Object> paramsMap);

    List<GoodsInfoVo> querySearchProduct(@Param("map") Map<String,Object> params);

    Integer getArea(Long sellerId);

    Map<String,Object> getFreightBase(@Param("regionIdStart")Integer regionIdStart,@Param("regionIdEnd") Integer regionIdEnd);

    List<GoodsImageEntity> queryGoodsImage(Long goodsId);

    void insertGoodsImage(List<GoodsImageEntity> goodsImageList);

    TwbStateCollectVo getTwbGoodsStateCount(@Param("sellerId") Long sellerId);

    List<GoodsSalesVo> getGoodsSalesList(Long sellerId);

    List<GoodsEntity> twbHostGoods(@Param("sellerId")Long sellerId);

    List<TwbGoodsListVo> queryTwbGoodsList(Page goodsEntityPage, @Param("params") Map params);
}
